import request from '@/utils/request'

// 查询设备已绑定方案ID列表
export function getDeviceSchemeIds(deviceId) {
  return request({
    url: '/geek/deviceScheme/schemeIds/' + deviceId,
    method: 'get'
  })
}

// 覆盖绑定设备的方案
export function bindDeviceSchemes(deviceId, schemeIds) {
  return request({
    url: '/geek/deviceScheme/bind',
    method: 'post',
    params: { deviceId },
    data: schemeIds
  })
}

// 解绑设备的部分方案
export function unbindDeviceSchemes(deviceId, schemeIds) {
  return request({
    url: '/geek/deviceScheme/unbind',
    method: 'post',
    params: { deviceId },
    data: schemeIds
  })
} 